package com.lagou.page.feign;

import com.lagou.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Fxz
 * @version 1.0
 * @date 2021-10-07 15:21
 */
@FeignClient("goods")
@RequestMapping("/category")
public interface CategoryFeign {

    /***
     * 根据分类ID查询分类数据
     * @param id
     * @return
     */
    @GetMapping("/{id}")
    public Result findById(@PathVariable Integer id);
}
